package com.mybatis_stu.mapper;

import com.mybatis_stu.pojo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Package com.mybatis_stu.mapper
 * @Date 2024/12/15 21:26
 */
@Mapper
public interface StudentMapper {
    void insert(Student student);
    void delete(@Param("ids") List<Integer> ids);

    void update(Student student);

    List<Student> list(@Param("name") String name,
                       @Param("educationId") Integer educationId,
                       @Param("classId") Integer classId,
                       @Param("number") String number);



    void updateDiscipline(@Param("studentId") Integer studentId,@Param("score") Integer score);
}
